﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Students:Person
    {
        private string major;//专业
        private string grade;//年纪

        public string Major 
        {
            get { return this.major; }
            set { this.major = value; } 
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }

        public void MSG()
        {
            Id = 12;
            Name = "张三";
            Sex = "男";
            Cardid = "123456";
            Tel = "11111";
            Major = "计算机科学";
            Grade = "20级";
        }

        public void PrintMSG()
        {
            Console.WriteLine(Id + " " + Name + " " + Sex + " " + Cardid + " " + Tel + " " + Major + " " + Grade);
        }

    }
}
